//
//  JLNewsDetail.m
//  LIangeNews
//
//  Created by 孙金亮 on 16/2/7.
//  Copyright © 2016年 sun. All rights reserved.
//

#import "JLNewsDetail.h"
#import "JLNewsDetailimg.h"
@implementation JLNewsDetail
//模型嵌套
- (instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
        NSMutableArray * arrayM = [NSMutableArray arrayWithCapacity:5];
        for (NSDictionary * dict in self.img) {
            JLNewsDetailimg * img = [JLNewsDetailimg newsDetailImgWithDict:dict];
            [arrayM addObject:img];
        }
        self.img = arrayM;
    }
    return self;
}
+ (instancetype)newsDetailWithDict:(NSDictionary *)dict{
    return [[JLNewsDetail alloc]initWithDict:dict];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{};
@end
